export function createStyledElement(label: string, cname: string, id?: string) {
  const elmt = document.createElement(label);
  if(elmt === null || elmt === undefined) {
    return null;
  }
  elmt.className = cname;
  if(id !== undefined) {
    elmt.id = id;
  }
  return elmt;
}
